<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            display: inline-block;
        }
        .d2{
            display: inline-block;
        }
    </style>
</head>
<body>
    <form method="post" action="${pageContext.request.contextPath}/loan_update">
        <div class="d1">
           <p>
               <span>合同编号</span>
               <input type="text" name="contractNO" required="required" value="${contractNO}" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span>合同摘要</span>
               <input type="text" name="contractInfo"  required="required" value="${contractInfo}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 签定日期</span>
               <input type="text" name="constructorName" value="${constructorName}" />
           </p>
           <p>
               <span> 存档日期</span>
               <input type="text" name="keepDate"  required="required" value="${keepDate}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span>借款人 </span>
               <input type="text" name="borrower" value="${borrower}"/>
           </p>
            <p>
                <span>合同名称</span>
                <input type="text" name="contractName" required="required" value="${contractName}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>借款开始日期</span>
                <input type="text" name="loanStartDate" required="required" value="${loanStartDate}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>借款结束日期</span>
                <input type="text" name="loanEndDate" required="required" value="${loanEndDate}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>借款金额</span>
                <input type="text" name="loanAmount" required="required" value="${loanAmount}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>年利率</span>
                <input type="text" name="annualRate" required="required" value="${annualRate}"/>
                <span style="color: red">*</span>
            </p>
        </div>
        <div class="d2">
            <p>
                <span>利息支付方式</span>
                <select name="interestPaymentMode" required="required" >
                    <option value="3" <c:if test="${interestPaymentMode==3}">selected</c:if>>季付</option>
                    <option value="4" <c:if test="${interestPaymentMode==4}">selected</c:if>>半年付</option>
                    <option value="5" <c:if test="${interestPaymentMode==5}">selected</c:if>>年付</option>
                </select>
            </p>
            <p>
                <span>备注</span>
                <input type="text" name="remark" value="${remark}"/>
            </p>
        </div>
        <div>
            <button type="submit">修改</button>
        </div>
    </form>
</body>
</html>
